﻿//===============================================================================
// La Pomme d'Or Krystal Application
// Windows Presentation Foundation Composite Application 
//===============================================================================
// Copyright (c) Jérôme Piquot.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================

using System;

namespace PJ.Data
{
    /// <summary>
    /// Data not found <see cref="System.Exception">exception</see>.
    /// </summary>
    [Serializable]
    public class DataNotFoundException : System.Exception
    {
        /// <summary>
        /// Create new instance
        /// </summary>
        public DataNotFoundException()
            : base()
        {
        }

        /// <summary>
        /// Create new instance
        /// </summary>
        /// <param name="message">Exception message</param>
        public DataNotFoundException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Create new instance
        /// </summary>
        /// <param name="argumentName">Argument name of search method</param>
        /// <param name="argumentValue">Argument value of search method</param>
        public DataNotFoundException(string argumentName, string argumentValue)
            : base("Using argument : " + argumentName + " with values : " + argumentValue)
        {
        }

        /// <summary>
        /// Create new instance
        /// </summary>
        /// <param name="message">Exception message</param>
        /// <param name="innerException">Inner exception object</param>
        public DataNotFoundException(string message, System.Exception innerException)
            : base(message, innerException)
        {
        }

        /// <summary>
        /// Create new instance
        /// </summary>
        /// <param name="info">serialization information</param>
        /// <param name="context">serialization context</param>
        protected DataNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
            : base(info, context)
        {
            
        }

    }
}
